package com.niit.controller;

import com.niit.entity.Student;
import com.niit.mapper.StudentMapper;
import com.niit.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author hanli
 * @date 2025/3/6
 * @description TODO
 */
public class Test {
    public static void main(String[] args) {

        SqlSession sqlSession = MybatisUtil.getSqlSession();

        StudentMapper studentMapper = sqlSession.getMapper(StudentMapper.class);

        Student student = studentMapper.selectStudentById("2020204646");

        System.out.println(student.getSname());
    }
}